import 'package:flutter/material.dart';

class LLCenterWidget extends StatelessWidget {
  // 水平间距
  final double horizontal;
  // 高度
  final double height;
  // 具体装饰
  final BoxDecoration? decoration;
  // 具体子Widget
  final Widget? child;

  LLCenterWidget({
    this.horizontal = 12,
    this.height = 44,
    this.decoration,
    this.child,
    Key? key,
  }) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
        width: double.infinity,
        decoration: decoration,
        height: height,
        margin: EdgeInsets.symmetric(horizontal: horizontal),
        child: child);
  }
}
